package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 系统附件表
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpFile extends Model<JbdpFile> {

    private static final long serialVersionUID=1L;

    /**
     * 附件ID
     */
    @TableId("FILE_ID")
    private String fileId;

    /**
     * 业务ID
     */
    @TableField("MAIN_ID")
    private String mainId;

    /**
     * 业务类型
     */
    @TableField("MAIN_TYPE")
    private String mainType;

    /**
     * 附件名称
     */
    @TableField("FILE_NAME")
    private String fileName;

    /**
     * 附件说明
     */
    @TableField("FILE_NOTE")
    private String fileNote;

    /**
     * 附件类型
     */
    @TableField("FILE_TYPE")
    private String fileType;

    /**
     * 附件绝对路径
     */
    @TableField("FILE_PATH")
    private String filePath;

    /**
     * 附件相对路径
     */
    @TableField("FILE_URL")
    private String fileUrl;

    /**
     * 创建人
     */
    @TableField("DO_USER")
    private String doUser;

    /**
     * 创建时间
     */
    @TableField("DO_TIME")
    private LocalDateTime doTime;

    /**
     * 删除标志
     */
    @TableField("DEL_FLAG")
    private Integer delFlag;


    public String getFileId() {
        return fileId;
    }

    public JbdpFile setFileId(String fileId) {
        this.fileId = fileId;
        return this;
    }

    public String getMainId() {
        return mainId;
    }

    public JbdpFile setMainId(String mainId) {
        this.mainId = mainId;
        return this;
    }

    public String getMainType() {
        return mainType;
    }

    public JbdpFile setMainType(String mainType) {
        this.mainType = mainType;
        return this;
    }

    public String getFileName() {
        return fileName;
    }

    public JbdpFile setFileName(String fileName) {
        this.fileName = fileName;
        return this;
    }

    public String getFileNote() {
        return fileNote;
    }

    public JbdpFile setFileNote(String fileNote) {
        this.fileNote = fileNote;
        return this;
    }

    public String getFileType() {
        return fileType;
    }

    public JbdpFile setFileType(String fileType) {
        this.fileType = fileType;
        return this;
    }

    public String getFilePath() {
        return filePath;
    }

    public JbdpFile setFilePath(String filePath) {
        this.filePath = filePath;
        return this;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public JbdpFile setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
        return this;
    }

    public String getDoUser() {
        return doUser;
    }

    public JbdpFile setDoUser(String doUser) {
        this.doUser = doUser;
        return this;
    }

    public LocalDateTime getDoTime() {
        return doTime;
    }

    public JbdpFile setDoTime(LocalDateTime doTime) {
        this.doTime = doTime;
        return this;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public JbdpFile setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.fileId;
    }

    @Override
    public String toString() {
        return "JbdpFile{" +
        "fileId=" + fileId +
        ", mainId=" + mainId +
        ", mainType=" + mainType +
        ", fileName=" + fileName +
        ", fileNote=" + fileNote +
        ", fileType=" + fileType +
        ", filePath=" + filePath +
        ", fileUrl=" + fileUrl +
        ", doUser=" + doUser +
        ", doTime=" + doTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
